adjust number of domains in cpupools when destroying domain
authorJuergen Gross <jgross@suse.com>
Wed, 12 Nov 2014 11:39:58 +0000 (12:39 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 12 Nov 2014 11:39:58 +0000 (12:39 +0100)
commit934e7baa6c12d19cfaf24e8f8e27d6c6a8b8c5e4
treeb8ad18d3e0ac50c72c28601ab9d6050975bdf17e
parentf6dd295381f4b6a66acddacf46bca8940586c8d8
adjust number of domains in cpupools when destroying domain

Commit bac6334b51d9bcfe57ecf4a4cb5288348fcf044a (move domain to
cpupool0 before destroying it) introduced an error in the accounting
of cpupools regarding the number of domains. The number of domains
is nor adjusted when a domain is moved to cpupool0 in kill_domain().

Correct this by introducing a cpupool function doing the move
instead of open coding it by calling sched_move_domain().

Reported-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Tested-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
Reviewed-by: Andrew Cooper <Andrew.Cooper3@citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/cpupool.c
xen/common/domain.c
xen/include/xen/sched.h